package com.rd.student.jiaji.class4.suyan.zrrd.day04;

public class Demo03 {
    public static void main(String[] args) {
        //将分数转换为等级关系
        //将分数等级划分
        /*
        定义等级规则
            100-90 A
            90-80 B
            80-70 C
            70-60 D
            小于60 E

         */
        int score=-77;
        if (score>=90&&score<=100) {
            System.out.println("A");
        }else if(score>=80&&score<90){
            System.out.println("B");
        }else if(score>=70&&score<80){
            System.out.println("C");
        }else if(score>=60&&score<70){
            System.out.println("D");
        }else if(score<60&&score>=0){
            System.out.println("E");
        }else{
            System.out.println("请正确输入分数");
        }


    }
}
